package com.foreknow.oop.hw5;

public class Person {
    private String name;    // 姓名
    private double length;  // 身高
    private double width;   // 体重

    public Person() {
    }

    public Person(String name, double length, double width) {
        this.name = name;
        this.length = length;
        this.width = width;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public double getLength() {
        return length;
    }

    public void setLength(double length) {
        this.length = length;
    }

    public double getWidth() {
        return width;
    }

    public void setWidth(double width) {
        this.width = width;
    }

    /**
     * 打印问好语句
     */
    public void sayHello(){
        System.out.printf("hello,my name is %s\n",name);
    }
}
